<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
   <style>
   .tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* 鼠标悬停时的下划线提示 */
  cursor: help; /* 鼠标悬停时显示帮助图标 */
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* 位置设置 */
  position: absolute;
  z-index: 1;
  bottom: -100%; /* 将提示框定位在文字下方 */
  left: 50%;
  margin-left: -60px; /* 使用一半的宽度来居中提示框 */

  /* 过渡效果 */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
   </style>
</head>
<body>
    <div class="tooltip">
        昂，你来晚了哈
        <span class="tooltiptext" id="tooltipText">我是提示文字撒</span>
      </div>
</body>
</html>